package com.xiyu.service.repository.material.stock;

import com.xiyu.service.model.material.stock.MaterialStock;
import com.xiyu.service.model.material.stock.MaterialStockTable;
import org.babyfish.jimmer.spring.repository.JRepository;

import java.util.Optional;

public interface MaterialStockRepository extends JRepository<MaterialStock, Long> {
    MaterialStockTable materialStockTable = MaterialStockTable.$;

    Optional<MaterialStock> findFirstByWarehouseIdAndMaterialId(Long warehouseId, Long materialId);
}